import request from '@/utils/request'

export function getQuoteSpec(data) {
  return request({
    url: '/quote/quoteInfoPrice/getQuoteSpec',
    method: 'get',
    params: data
  })
}

export function batchSaveQuoteInfoPrice(data) {
  return request({
    url: '/quote/quoteInfoPrice/batchSaveQuoteInfoPrice',
    method: 'post',
    data: data
  })
}

// 查询报价明细列表
export function listQuoteInfoPrice(query) {
  console.log('listQuoteInfoPricelistQuoteInfoPrice')
  return request({
    url: '/quote/quoteInfoPrice/list',
    method: 'get',
    params: query
  })
}

// 查询报价明细详细
export function getQuoteInfoPrice(id) {
  return request({
    url: '/quote/quoteInfoPrice/' + id,
    method: 'get'
  })
}

// 新增报价明细
export function addQuoteInfoPrice(data) {
  return request({
    url: '/quote/quoteInfoPrice',
    method: 'post',
    data: data
  })
}

// 修改报价明细
export function updateQuoteInfoPrice(data) {
  return request({
    url: '/quote/quoteInfoPrice',
    method: 'put',
    data: data
  })
}

// 删除报价明细
export function delQuoteInfoPrice(id) {
  return request({
    url: '/quote/quoteInfoPrice/' + id,
    method: 'delete'
  })
}

export function getQuotePrice(params) {
  return request({
    url: '/quote/quoteInfoPrice/getQuotePrice',
    method: 'get',
    params
  })
}


